package com.dsh.authorityManagement.dao;

import com.dsh.authorityManagement.entity.dto.IdDto;
import com.dsh.authorityManagement.entity.dto.UserDto;
import com.dsh.authorityManagement.entity.vo.ImportUserVo;
import com.dsh.authorityManagement.entity.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao {
    int insertUser(UserDto userDto);

    int insertUserForVx(UserDto userDto);

    int passed(int id);

    int noPassed(int id);

    List<UserDto> selectUsernameAndRoleNameAndStoreName();

    List<UserDto> selectUsernameAndRoleNameAndStoreNameM(@Param("username") String username, @Param("phone") String phone);

    List<ImportUserVo> selectImportUser();

    int ImportUser(@Param("idDto") IdDto idDto);

    List<UserVo> selectAdminByAdminId(int id);

}
